package com.heo.task.thread;

import java.io.Serializable;

public class CallBackInfo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private int reSendCount = 0;// 当前重发次数
	private int maxReSendCount = 3;// 最大重发次数
	private long lastSendTime = 0;// 上次发送时间
	private long expireTime = 180 * 1000;// 过期时间，超过这个时间则不发送
	private long sendIntervalTime = 10 * 1000; //发送间隔时间
	private int sleepTime = 0;  //回调休眠时间
	
	private String sendMessage;   //发送的消息内容
	private String sendUrl;       //发送的服务器url
	
	public CallBackInfo() {}
	
	public CallBackInfo(String sendMessage, String sendUrl) {
		this.sendMessage = sendMessage;
		this.sendUrl = sendUrl;
	}
	
	public int getReSendCount() {
		return reSendCount;
	}
	public void setReSendCount(int reSendCount) {
		this.reSendCount = reSendCount;
	}
	public int getMaxReSendCount() {
		return maxReSendCount;
	}
	public void setMaxReSendCount(int maxReSendCount) {
		this.maxReSendCount = maxReSendCount;
	}
	public long getLastSendTime() {
		return lastSendTime;
	}
	public void setLastSendTime(long lastSendTime) {
		this.lastSendTime = lastSendTime;
	}
	public long getExpireTime() {
		return expireTime;
	}
	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}
	public String getSendMessage() {
		return sendMessage;
	}
	public void setSendMessage(String sendMessage) {
		this.sendMessage = sendMessage;
	}
	public String getSendUrl() {
		return sendUrl;
	}
	public void setSendUrl(String sendUrl) {
		this.sendUrl = sendUrl;
	}
	
	public long getSendIntervalTime() {
		return sendIntervalTime;
	}

	public void setSendIntervalTime(long sendIntervalTime) {
		this.sendIntervalTime = sendIntervalTime;
	}

	public int getSleepTime() {
		return sleepTime;
	}

	public void setSleepTime(int sleepTime) {
		this.sleepTime = sleepTime;
	}

	@Override
	public String toString() {
		return sendMessage;
	}
}
